package week5;

/**
 * Created by Administrator on 2016/3/30.
 */
public class FinallyDemo {
    public static void main(String[] args) {
        System.out.println(test(true));
    }
    static int test(boolean flag){
        try {
            if (flag){
                return 1;
            }
        }finally {
            System.out.println("finally...");
        }
        return 0;
    }
}
